﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Plane : IFlyable
    {
        private string name;
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public Plane(string name)
        {
            this.name = name;
        }
        public void Fly()
        {
            Console.WriteLine("{0}会飞", this.Name);
        }

        public void Land()
        {
            Console.WriteLine("{0}会着陆", this.Name);
        }

        public void TakeOff()
        {
            Console.WriteLine("{0}会起飞", this.Name);
        }
        public void CarryPassange()
        {
            Console.WriteLine("{0}会托运行李", this.Name);
        }
    }
}
